package org.hyjiacan.deadqq.common.protocol;

import java.io.Serializable;
import java.util.Date;

import org.hyjiacan.deadqq.common.entity.User;


public class CommonProtocol implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6416767724617300145L;

	private String ip;

	private int port;

	private User sender;

	private String header;

	private Date sendTime;


	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public User getSender() {
		return sender;
	}

	public void setSender(User sender) {
		this.sender = sender;
	}

	public String getHeader() {
		return header;
	}

	public void setHeader(String header) {
		this.header = header;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	@Override
	public String toString() {
		return "address:" + ip + ":" + port + "\n sender:" + sender.getNumber()
				+ "\n header:" + header + "\n sendTime:" + sendTime + "]";
	}

}
